package com.stu.service.impl;

import cn.hutool.core.util.StrUtil;
import com.stu.dao.CollegeMapper;
import com.stu.po.College;
import com.stu.service.CollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollegeServiceImpl implements CollegeService {
    @Autowired
    private CollegeMapper collegeMapper;

    @Override
    public Integer CollegeByName(String CollegeName) {
        if (StrUtil.isBlank(CollegeName)) {
            return null;
        }
        return collegeMapper.collegeByName(CollegeName);
    }

    @Override
    public List<College> collegeList() {

        return collegeMapper.collegeList();
    }
}
